package com.project.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.template.common.Result;
import com.project.template.dto.LoginDTO;
import com.project.template.dto.UserDTO;
import com.project.template.dto.UserLoginDTO;
import com.project.template.entity.User;
import com.project.template.vo.SysUserLoginVO;
import com.project.template.vo.UserVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;


public interface UserService extends IService<User> {

    /**
     * 用户登录
     * @param username 用户名
     * @param password 密码
     * @return 登录结果
     */
    Result login(String username, String password);

    void changePassword(Integer userId, String oldPassword, String newPassword);

    UserVO login(LoginDTO loginDTO);

    Page<User> page(Map<String, Object> query, Integer pageNum, Integer pageSize);

    void register(UserDTO userDTO);





}


